package com.sen.design.pattern.creational.prototype;

import java.text.MessageFormat;

public class MailUtil {

    public static void sendMail(Mail mail){
        String content = "向{0}同学,邮件地址:{1},邮件内容：{2}发送邮件成功";
        System.out.println(MessageFormat.format(content,mail.getName(),mail.getEmailAddress(),mail.getContent()));
    }

    public static void saveOriginMailRecord(Mail mail){
        System.out.println("存储originMail记录，originMail:"+ mail.getContent());
    }
}
